#!/bin/bash
if [ -n "${BASH_SOURCE[0]}" ]; then
    OBMCROOT="$(dirname "${BASH_SOURCE[0]}")"
elif [ -n "$ZSH_NAME" ]; then
    OBMCROOT="$(dirname "$0")"
else
    OBMCROOT="$(pwd)"
fi

if [ -f "$OBMCROOT/customrc" ]; then
    echo "### Sourcing customrc ###"
    # shellcheck source=/dev/null
    . "$OBMCROOT/customrc"
fi

echo "### Initializing OE build env ###"
# shellcheck source=oe-init-build-env
. "$OBMCROOT/oe-init-build-env"
